import requests
from requests import Response


class Mall:
    def login(self, username, password, code) -> Response:
        payload = {'code': code, 'username': username, 'password': password}
        r = requests.post(
            url = 'https://litemall.hogwarts.ceshiren.com/admin/auth/login',
            json = payload
        )
        return r

    def list_users(self):
        pass

    def list_orders(self):
        pass

    def logout(self):
        pass
